@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <title>AddressSearchAccordion</title>
</head>
<body>
    <script type="text/javascript">

        jQuery(document).ready(function () {
            $("#Nav").hide();
            $("#userprofiledataaccordion3").accordion();
            $("#userprofiledataaccordion2").accordion();
            
            $('#trgSearch').click(function (event) {
var myUrl ="./UserProfileData/Search?UPDName=" + $("#UPDName").val() +  "&UPDValue=" + $("#UPDValue").val();
                $.ajax({
                    url: '@Url.Content("~/UserProfileData/UserProfileDataGrid/")',
                    cache: false,
                    success: function (html) {
                        $("#userprofiledataaccordion3").accordion("activate", 1);
                        $('#UserProfileDatasearch').html(html);
                        $("#userprofiledatalist").setGridParam({ datatype: 'json', url: myUrl }).trigger("reloadGrid");
                        $('#userprofiledatalist').jqGrid('setGridParam', { onSelectRow: function (ids) {
                        UserProfileDataID = ids ;
                            $.ajax({
                                url: '@Url.Content("~/UserProfileData/UserProfileDataDetails/")' + UserProfileDataID,
                                cache: false,
                                success: function (html) {
                                    $('#UserProfileDatareview').html(html);

                                }
                            });
                            $("#userprofiledataaccordion3").accordion("activate", 2);
                        }
                        });
                    }
                });

            });

			 $('#Details').click(function(event) {
				$.ajax({
					url: '@Url.Content("~/UserProfileData/UserProfileDataDetails/")' + UserProfileDataID,
					cache: false,
					success: function (html) {
					$('#Dialog').html(html);
					$('#Dialog').dialog({modal:true});
					return false;
				}});
			});
			 $('#Add').click(function(event) {
				$.ajax({
					url: '@Url.Content("~/UserProfileData/NewUserProfileDataForm/")',
					cache: false,
					success: function (html) {
					$('#Dialog').html(html);
					$('#Dialog').dialog({modal:true});
					return false;
				}});
			});
			 $('#Update').click(function(event) {
				$.ajax({
					url: '@Url.Content("~/UserProfileData/UpdateUserProfileDataForm/")' + UserProfileDataID,
					cache: false,
					success: function (html) {
					$('#Dialog').html(html);
					$('#Dialog').dialog({modal:true});
					return false;
				}});
			});
			 $('#Search').click(function(event) {
				$.ajax({
					url: '@Url.Content("~/UserProfileData/UserProfileDataSearch/")' + UserProfileDataID,
					cache: false,
					success: function (html) {
					$('#Main').html(html);
					return false;
				}});
			});
			 $('#Remove').click(function(event) {
				$.ajax({
					url: '@Url.Content("~/UserProfileData/RemoveUserProfileDataForm/")' + UserProfileDataID,
					cache: false,
					success: function (html) {
					$('#Dialog').html(html);
					$('#Dialog').dialog({modal:true});
					return false;
				}});
			});
			        });
			    </script>
			    <div id="userprofiledataaccordion3">
					<h3><a href="#">Step 1: userprofiledata Search</a></h3>
				    <div>
			            U P D Name: <input type="text" name="UPDName" id="UPDName" />
			U P D Value: <input type="text" name="UPDValue" id="UPDValue" />
			            <input type="button" value="Search" id="trgSearch" />
			        </div>
			
			        <h3><a href="#">Step 2: userprofiledata Select</a></h3>
				    <div>
			           <div id="UserProfileDatasearch"></div>
			        </div>
			
			        <h3><a href="#">Step 3: userprofiledata Review</a></h3>
				    <div>
			           <div id="UserProfileDatareview"></div>
			        </div>
			
			        <h3><a href="#">Step 4: userprofiledata Relationships</a></h3>
				    <div>
			           <div id="UserProfileDatarelate">
			            <div id="userprofiledataaccordion2">
			    <h3><a href="#">Edit Options</a></h3>
			     <ul>
			<li><a href="#" id="Add">Add</a></li>
			<li><a href="#" id="Update">Update</a></li>
			<li><a href="#" id="Search">Search</a></li>
			<li><a href="#" id="Remove">Remove</a></li>
			<li><a href="#" id="Details">Details</a></li>
					
				 </ul>
				 
				  <h3><a href="#">Related Items</a></h3>
				  <ul>
			               
			            </ul>
			    </div>
			            </div>
			        </div>
			    </div>
			</body>
			</html>